/**
 * 
 */
package com.ywm8.ywm.admin.service;

import java.util.List;

/**
 * @author wangruishun
 * @version ywm8 1.0
 * 2014-1-8 下午6:08:55
 */
public interface BaseService<T> {
	
		public void saveEntity(T t);
		public void updateEntity(T t);
		public void deleteEntity(T t);
		public void saveOrUpdateEntity(T t);
		public void batchEntityByHQL(String hql,Object...objects);
		public T getEntity(Integer id);
		public T loadEntity(Integer id);
		public List<T> findEntityByHQL(String hql,Object...objects);
	
}
